package com.example.recordingpen_datacollection.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xg
 * @since 2023-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Businessdata implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 业务id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer loginId;

    /**
     * 收费类型
     */
    @TableField(value = "charge_type")
    private Integer chargeType;

    /**
     * 剩余用量
     */
    @TableField(value = "dosage")
    private Long dosage;

    /**
     * 添加时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "uaddtime", fill = FieldFill.INSERT)
    private Date uaddtime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "altertime", fill = FieldFill.INSERT_UPDATE)
    private Date altertime;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "start_time", fill = FieldFill.INSERT)
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "end_time")
    private Date endTime;

    @JSONField(serialize = false)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "max_time")
    private Date  maxTime;

    private String title;

}
